<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{adressesmsgs['navigation.back']}" action="/jsf/adresses/listAdressess.xhtml"/>
		
			<p:panel header="#{adressesmsgs['adresses.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{adressesmsgs['adresses.addadresse.title']}:*" />
							<h:inputText id="adresses_addadresse" value="#{AdressesComponent.adresses.addAdresse}" required="true" label="adresses_addadresse" />
						<h:outputText value="#{adressesmsgs['adresses.addtopnpai.title']}:" />
							<h:inputText id="adresses_addtopnpai" value="#{AdressesComponent.adresses.addTopNpai}" required="false" label="adresses_addtopnpai" />
						<h:outputText value="#{adressesmsgs['adresses.addtypevoie.title']}:" />
							<h:inputText id="adresses_addtypevoie" value="#{AdressesComponent.adresses.addTypeVoie}" required="false" label="adresses_addtypevoie" />
						<h:outputText value="#{adressesmsgs['adresses.addligne1.title']}:" />
							<h:inputText id="adresses_addligne1" value="#{AdressesComponent.adresses.addLigne1}" required="false" label="adresses_addligne1" />
						<h:outputText value="#{adressesmsgs['adresses.addligne2.title']}:" />
							<h:inputText id="adresses_addligne2" value="#{AdressesComponent.adresses.addLigne2}" required="false" label="adresses_addligne2" />
						<h:outputText value="#{adressesmsgs['adresses.addligne3.title']}:" />
							<h:inputText id="adresses_addligne3" value="#{AdressesComponent.adresses.addLigne3}" required="false" label="adresses_addligne3" />
						<h:outputText value="#{adressesmsgs['adresses.addbureaudistrib.title']}:" />
							<h:inputText id="adresses_addbureaudistrib" value="#{AdressesComponent.adresses.addBureauDistrib}" required="false" label="adresses_addbureaudistrib" />
						<h:outputText value="#{adressesmsgs['adresses.adddatecreation.title']}:" />
							<p:calendar id="adresses_adddatecreation" value="#{AdressesComponent.adresses.addDateCreation}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{adressesmsgs['adresses.adddatemodification.title']}:" />
							<p:calendar id="adresses_adddatemodification" value="#{AdressesComponent.adresses.addDateModification}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{adressesmsgs['navigation.save']}" action="#{AdressesComponent.saveAdresses(AdressesComponent.adresses)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>